.container{
    width: 602px;
    height: 600px;
    border: 1px solid #333;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
}
.container div{
    width: 198px;
    height: 198;
    border: 1px solid #333;
    background-color: beige;
   text-align: center;
   line-height: 198px;
}
button{
    display: block;
    width: 50px;
    height: 50px;
    margin: 0 auto;
}
.active{
    border: 2px solid red !important;
    background-color: green !important;
    color: red;
}